Skip to main content

ValidateTemplate

Description

call the ValidateTemplate interface to update the template.

Request Method

POST

Request Path

/apsara/route/ROS/ValidateTemplate

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
TemplateURLBODYstringNooss://ros/template/demothe location of the file containing the template body. The URL must point to the template located in the Web server (HTTP or HTTPS) or Aliyun OSS bucket (for example, oss:// ros/template/demo, oss:// ros/template/demo?RegionId = cn-hangzhou), the maximum template is 524 and 288 bytes. If the OSS region is not specified, the default is the same as the interface parameter RegionId. description you must specify TemplateBody or TemplateURL parameters, but not at the same time. the maximum length of the URL is: 1024 bytes.
DescriptionBODYstringNoIt is a demo.description of the template. The maximum length is 256 characters.
regionIdBODYstringYesNo sample value for this parameter.region id
TemplateNameBODYstringNoMyTemplatethe name of the template. must be no more than 255 characters in length and must start with a number or an English letter, which can contain numbers, English letters, dashes (-), and underscores (_).
TemplateBodyBODYstringNo{"ROSTemplateFormatVersion":"2015-09-01"}the structure of the template. The length is 1~524 and 288 bytes. /p> p data-tag = "p" class = "p"> if the length is large, it is recommended to pass the parameters in the request body through HTTP POST + Body Param to avoid the request failure caused by the URL being too long. description you must specify the parameter TemplateBody or TemplateURL, but not at the same time.
versionBODYstringNo2016-01-01version of api
TemplateIdBODYstringYes5ecd1e10-b0e9-4389-a565-e4c15efc****template ID.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: ValidateTemplate

ValidateTemplate

Description

call the ValidateTemplate interface to verify the template on which the resource stack will be created.

Request Method

POST

Request Path

/apsara/route/ROS/ValidateTemplate

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
TemplateURLBODYstringNooss://ros/template/demothe location of the file containing the template body. The URL must point to the template located in the Web server (HTTP or HTTPS) or Aliyun OSS bucket (for example, oss:// ros/template/demo, oss:// ros/template/demo?RegionId = cn-hangzhou), the maximum template is 524 and 288 bytes. If the OSS region is not specified, the default is the same as the interface parameter RegionId. description you must specify TemplateBody or TemplateURL parameters, but not at the same time. the maximum length of the URL is: 1024 bytes.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringNocn-hangzhouthe region ID to which the resource stack template belongs.
TemplateBodyBODYstringNo{"ROSTemplateFormatVersion":"2015-09-01"}the structure of the template. The length is 1~524 and 288 bytes. /p> p data-tag = "p" class = "p"> if the length is large, it is recommended to pass the parameters in the request body through HTTP POST + Body Param to avoid the request failure caused by the URL being too long. description you must specify the parameter TemplateBody or TemplateURL, but not at the same time.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}